<?php
namespace Home\Controller;

class IndexController extends CommonController{

	public function index(){
        if(IS_POST){
            $model = D('Entrant');
            $data = I('post.info');
            if(!$m = $model->create($data))$this->error($model->getError());
            $result = $model->add($data);
            $result ? $this->success('') : $this->error('报名信息提交失败！');
        }else{
            $this->display();
        }
    }
	public function register(){
		if(IS_POST){
            
        }else{
            $this->display();
        }
    }
}